.topbar-wrapper {
  width: 100%;
  height: 40px;
  line-height: 40px;
  background-color: #333;
}

.topbar a {
  font-size: 12px;
  color: #b0b0b0;
  display: block;
}

.topbar a:hover {
  color: #fff;
}

.service,.topbar li {
  float: left;
}

.app-wrapper {
  position: relative;
}

.app-wrapper .app::before {
  position: absolute;
  display: none;
  content: '';
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top: none;
  border-bottom-color: #fff;
  /* top: 34px;
  left: 15px; */
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
}

 .app-wrapper .qrcode {
  position: absolute;
  width: 124px;
  height: 0;
  overflow: hidden;
  transition: height .3s;
  background-color: #fff;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
  left: -40px;
  z-index: 9999;
}

.app-wrapper:hover .app::before {
  display: block;
}

.app-wrapper:hover .qrcode {
  height: 148px;
}

.app-wrapper .qrcode span {
  font-size: 14px;
  color: #000;
}

.app-wrapper .qrcode img {
  width: 90px;
  margin: 14px 17px;
}

.shop-cart,.user-info {
  float: right;
}

.topbar .line {
  font-size: 12px;
  color: #424242;
  margin: 0 8px;
}

.shop-cart {
  margin-left: 25px;
}

.shop-cart a {
  width: 120px;
  background-color: #424242;
  text-align: center;
}

.shop-cart:hover a {
  color: #FF6700;
  background-color: #fff;
}

.shop-cart i {
  margin-right: 2px;
}

.header-wrapper {
  position: relative;
}

.header {
  height: 100px;
  /* background-color: aquamarine; */
}

.header .logo {
  position: relative;
  float: left;
  margin-top: 22px;
  width: 55px;
  height: 55px;
  overflow: hidden;
  text-indent: -100px;
}

.header .logo a {
  position: absolute;
  width: 55px;
  height: 55px;
  background-color: #ff6700;
  background-position: center;
  transition: left .3s;
}

.header .logo .mi {
  background-image: url('../img/mi-logo.png');
  left: 0;
}

.header .logo .home {
  left:-55px;
  background-image: url('../img/mi-home.png');
}

.header .logo:hover .mi {
  left: 55px;
}

.header .logo:hover .home {
  left: 0;
}

.header .nav-wrapper {
  float: left;
  margin-left: 7px;
  line-height: 100px;
}

.header .nav > li {
  float: left;
}

.header .nav >li:not(.all-goods-wrapper) a {
  font-size: 16px;
  padding-right: 20px;
}

.header .nav-wrapper a:hover {
  color: #FF6700;
}

.header .nav-wrapper {
  padding-left: 60px;
}

.header .nav-wrapper .all-goods {
  visibility: hidden;
}

.header .nav .goods-info {
  position: absolute;
  width: 100%;
  /* height: 228px; */
  height: 0;
  overflow: hidden;
  top: 100px;
  left: 0;
  background-color:#fff;
  /* border-top: 1px solid rgb(224, 224, 224);
  box-shadow: 0 3px 3px rgba(0, 0, 0, .1); */
  transition: height .3s;
  z-index: 9999;
}

.header .nav .goods-info:hover,
.header .nav .show-goods:hover ~ .goods-info {
  height: 228px;
  border-top: 1px solid rgb(224, 224, 224);
  box-shadow: 0 3px 3px rgba(0, 0, 0, .1);
}

.header .nav .all-goods-wrapper {
  position: relative;
}

.header .nav .left-menu {
  position: absolute;
  width: 234px;
  height: 420px;
  padding: 20px 0;
  background-color: rgba(0, 0, 0, .6);
  z-index: 999;
  left: -122px;
}

.header .nav .left-menu li a {
  display: block;
  height: 42px;
  line-height: 42px;
  padding-left: 30px;
  color: white;
}

.header .nav .left-menu li a:hover {
  background-color: #FF6700;
}

.header .nav .left-menu li i {
  float: right;
  margin-right: 20px;
  line-height: 42px;
}

.header .search-wrapper {
  float: right;
  width: 296px;
  height: 50px;
  margin-top: 25px;
}

.header .search .search-inp {
  float: left;
  box-sizing: border-box;
  width: 244px;
  height: 52px;
  border: 1px solid rgb(224, 224, 224);
  border-right: none;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
}

.header .search .search-inp:focus,
.header .search .search-inp:focus + button {
  border-color: #FF6700;
}

.header .search .search-btn {
  float: left;
  width: 52px;
  height: 52px;
  background-color: #fff;
  border: 1px solid rgb(224, 224, 224);
  color: #616161;
  font-size: 17px;
  outline: none;
}

.header .search .search-btn:hover {
  background-color: #FF6700;
  cursor: pointer;
  color: #fff;
  border: none;
}

.banner {
  position: relative;
  height: 460px;
}

.banner .img-list img {
  width: 100%;
  vertical-align: top;
}

.banner .img-list > li {
  position: absolute;
}

.banner .pointer {
  position: absolute;
  right: 35px;
  bottom: 22px;

}

.banner .pointer a {
  float: left;
  width: 6px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background-color:rgba(0, 0, 0, .4);
  margin-left: 6px;
}

.banner .pointer a.active {
  border-color: rgba(0, 0, 0, .4);
  background-color: rgba(255, 255, 255, .4);
}

.banner .pointer a:hover {
  border-color: rgba(0, 0, 0, .4);
  background-color: rgba(255, 255, 255, .4);
}

.banner .prev-next a {
  width: 41px;
  height: 69px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  background-image: url('../img/icon-slides.png');
}

.banner .prev-next .prev {
  left: 234px;
  background-position: -84px 0;
}

.banner .prev-next .next {
  right: 0;
  background-position: -125px 0;
}

.banner .prev-next .prev:hover {
  background-position: 0 0;
}

.banner .prev-next .next:hover {
  background-position: -42px 0;
}

.back-top {
  width: 26px;
  height: 206px;
  background-color: #bfa;
  /* 开启固定定位 */
  position: fixed;
  bottom: 50px;
  /* 将right值设置为视图宽度的50% */
  right: 50%;
  margin-right: -639px;
   /* 
        布局的等式
            left + margin-left + width + margin-right + right = 视口的宽度

            auto + 0 + 26 + 0 + 60 = 视口宽度
            通过较少margin-right的值，从而增大left的值
            auto + 0 + 26 + -639px + 50% = 视口宽度
    */

  
}

.ad {
  height: 170px;
  margin-top: 14px;
}

.ad ul,.ad li{
  float: left;
}

.ad .shortcut {
  width: 232px;
  height: 168px;
  margin-right: 14px;
  background-color: #5f5750;
  padding-top: 2px;
  padding-left: 2px;
}


.ad .shortcut a{
  display: block;
  width: 76px;
  height: 84px;
  color: #CFCCCA;
  text-align: center;
  font-size: 12px;
  /* 避免外边距折叠 */
  overflow:  hidden; 
}

.ad .shortcut a:hover {
  color: #fff;
}

.ad .shortcut li {
  position: relative;
}

.ad .shortcut li::before {
  position: absolute;
  left: 0;
  right: 0;
  top:0;
  margin: 0 auto;
  content: '';
  width: 64px;
  height: 1px;
  background-color: #665e57;
}

.ad .shortcut li::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto 0;
  content: '';
  width: 1px;
  height: 70px;
  background-color: #665e57;
}

.ad .shortcut i {
  font-size: 24px;
  display: block;
  margin: 20px 0 5px;
}

.ad .imgs li {
  width: 316px;
}

.ad .imgs li:not(:last-child) {
  margin-right: 15px;
}

.ad .imgs li img {
  width: 100%;
  vertical-align: top;

}
